package com.yiwyn.demo.service;

import com.yiwyn.demo.anno.Task;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class TestService {


    @Task(apiCode = 1)
    public void task1() {
        log.info("task1开始执行");
    }

    @Task(apiCode = 2, hasParam = true)
    public void task2(String param) {
        log.info("param:{}", param);
    }

}
